//呼叫队友救自己
params ["_unit"];

{
	//if((typeOf _x) find "Medic" >= 0) exitWith{
	if(_forEachIndex > 4
	&& {damage _x < 0.1}
	&& {"FirstAidKit" in items _x}) exitWith{
		_x doMove (position _unit);
		waitUntil {sleep 3;_unit distance _x < 40};
		[_x, _unit, 0] call fn_throw;
		_x doMove (position _unit);
		waitUntil {sleep 3;_unit distance _x < 10};
		waitUntil {_x doMove (position _unit);Sleep 1;_unit distance _x < 2};

		if(alive _unit)then{
			_x setDir (_x getDir _unit);
			[_x,"AinvPknlMstpSlayWrflDnon_medicOther"] remoteExec ["playMoveNow",0];
			Sleep 7;
			_unit setUnconscious false;
			_unit setDamage 0.25;
			[_unit, ""] remoteExec ["switchMove", 0];
			_x removeItem "FirstAidKit";
		};
	};
}forEach units group _unit;